package com.teacold.customdemo.recyclerdemo;

public class RecyclerBean implements Comparable {
    private String mId;
    private String mName;

    public RecyclerBean(String mId, String mName) {
        this.mId = mId;
        this.mName = mName;
    }

    public String getmId() {
        return mId;
    }

    public void setmId(String mId) {
        this.mId = mId;
    }

    public String getmName() {
        return mName;
    }

    public void setmName(String mName) {
        this.mName = mName;
    }

    @Override
    public int compareTo(Object o) {
        return Integer.valueOf(((RecyclerBean)o).mId)-Integer.valueOf(mId);
    }

    @Override
    public boolean equals(Object obj) {
        return ((RecyclerBean)obj).mId.equals(mId);
    }

    @Override
    public int hashCode() {
        return 1;
    }
}
